package com.xs.common.domain.entity;

import com.xs.common.annotation.Excel;
import com.xs.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 留言板对象 message_board
 * 
 * @author xs
 * @date 2024-06-23
 */
public class MessageBoard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 留言者姓名 */
    @Excel(name = "留言者姓名")
    private String name;

    /** 留言内容 */
    @Excel(name = "留言内容")
    private String text;

    /** 留言时间 */
    @Excel(name = "留言时间")
    private Long time;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }
    public void setTime(Long time) 
    {
        this.time = time;
    }

    public Long getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("text", getText())
            .append("time", getTime())
            .toString();
    }
}
